Method and apparatus for interconnecting content addressable memory devices

ABSTRACT

A cam system comprising a plurality of CAM devices connected in a serial cascade arrangement, the CAMS in the cascade being connected to an adjacent CAM by a respective forwarding bus, with at most a first CAM in the cascade being connected to a receive data signals from a host controller and at most a last CAM devices being coupled to forward results back to the host controller; and a send signal generation means for supplying a SEND signal to the last CAM; the SEND signal for coordinating transfer of the search result from the last CAM to the host controller, the serial cascade arrangement minimising the number of CAMs being connected to a common forwarding bus.

[0001] This application claims priority from U.S. Provisional Application Serial No. 60/391,941 filed Jun. 28, 2002.

[0002] The present invention relates to a content addressable memory (CAM) system, and in particular to a system and method for cascading a plurality of CAM devices to provide an increase in addressable memory space.

BACKGROUND OF THE INVENTION

[0003] In conventional memory systems, such as a Random Access Memory (RAM) memory cells are accessed by a processor that specifies a storage address that is associated with the given set of memory cells. This system provides rapid access to any portion of the memory system within certain limitations.

[0004] In associative memory systems, such as Content Addressable Memory (CAM), the system has the ability to perform a search and compare operation based on the contents of its memory cells, such that a storage address is retrieved by simultaneously searching all memory cells for a particular bit sequence. In other words user-specified data in a comparand register is compared directly with all the stored data held in the CAM's address space simultaneously. The CAM then generates a match or mismatch result, the former including an address of the memory cells at which the match occurred.

[0005] When storage requirements exceed the number of entries that may be stored on a single CAM device, multiple devices can be cascaded together to expand the number of search entries. This can be achieved, by employing well known methods for connection a plurality of CAMs, such as daisy chain or multi-drop cascading methods. The cascaded devices may then be searched as a single entity.

[0006] In using these well-known methods, a plurality of CAMs are connected to a host controller. However, because search data must be applied to all CAMs in the cascade, long interconnects, typically arising from use of common forwarding buses, between the host controller and the cascade of CAMs introduce delay into the propagated signals. As the number of CAMs connected to a common forwarding bus from a host controller is increased, latency time for signals propagated on the bus becomes longer due to increased load capacitance and resistance. Thus the overall speed of the cascaded CAM structure is limited. These long interconnect delay problems become especially pronounced as individual CAMs capable of operating at high clock speeds, typically 75 MHz or faster, are becoming available.

[0007] Also, like in single CAM devices, multiple matches can exist in a cascaded CAM system, and accordingly a priority determining mechanism must be employed to resolve multiple match instances in a cascade arrangement.

[0008] A need therefore exists for an improved method and system for cascading a plurality of CAMs which reduces the delay time for signals propagated along the forwarding bus.

SUMMARY OF THE INVENTION

[0009] The present invention seeks to provide an improved method and system for cascading a plurality of CAMs.

[0010] In accordance with one aspect of the invention there is provided a CAM system comprising:

[0011] a) a plurality of CAM devices connected in a serial cascade configuration, each CAM in the cascade configuration being connected to an adjacent CAM by a respective forwarding bus, the cascade configuration comprising at least a first CAM being connected to a receive data signals from a host controller and at least a last CAM devices being coupled to forward results back to the host controller; and

[0012] b) an enable signal generator for supplying an enable signal to the last CAM; the enable signal initiating transfer of a search result from the last CAM back to the host controller.

[0013] An advantage of the present invention is that, delay caused by heavy loading on commonly connected buses to multiple CAMs is reduced.

[0014] Another advantage of the present invention is that reliance on additional circuitry, external to the CAMs, is minimised to resolve priority of received results from the cascaded CAMs.

BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Embodiments of the invention may best be understood by referring to the following description and accompanying drawings wherein:

[0016]FIG. 1 is a schematic diagram of a daisy chain cascading method according to the prior art;

[0017]FIG. 2 is a schematic diagram of a multi-drop cascading method according to the prior art;

[0018]FIG. 3 is a schematic diagram showing a plurality of CAMs cascaded according to an embodiment of the present invention;

[0019]FIG. 4 is a diagram showing the timing signals for the cascaded arrangement of FIG. 3;

[0020]FIG. 5 is schematic diagrams of a circuit for minimising clock skew in a CAM device according to an embodiment of the present invention;

[0021]FIG. 6 is a schematic diagram of a circuit for determining data flow latency through a CAM device according to an embodiment of the present invention;

[0022]FIG. 7 is a timing diagram for the system of FIG. 6;

[0023]FIGS. 8a and 8 b are schematic diagrams showing an output arrangement for the CAM system;

[0024]FIG. 9 is a schematic diagram of showing a plurality of CAMs cascaded according to a second embodiment of the present invention;

[0025]FIG. 10 is a schematic diagram of showing a plurality of CAMs cascaded according to a third embodiment of the present invention; and

[0026]FIG. 11 is a schematic diagram of showing a plurality of CAMs cascaded according to a fourth embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0027] In the following description, numerous specific details are set forth to provide a thorough understanding of the invention. However, it is understood that the invention may be practiced without these specific details. In other instances, well-known structures or and/or processes have not been described or shown in detail in order not to obscure the invention. In the description and drawings, like numerals refer to like structures or processes. The operation of a CAM device is well known in the art and will not be described further except where necessary to clarify aspects of the invention.

[0028] Referring to FIG. 1 there is shown a conventional daisy chain CAM cascading configuration 100 according to the prior art. The system 100 includes a host controller 110, common forwarding buses 120 and a plurality of CAMs Ci, i=1 to N, where N is the number of CAM's arranged sequentially and connected to the common forwarding buses 120. The forwarding buses include an instruction bus 122, a data bus 124 to receive commands issued with a corresponding search data key and a common clock signal line 126 to synchronize data transfer between the CAMs C1-CN with the host controller 110. A common result bus is not used; rather, results R1 from respective CAMs are propagated to adjacent CAMs in the chain until the first CAM C1 in the chain propagates a final result R1 to the host controller 110.

[0029] Priority for each CAM Ci is determined by its position in the chain relative to the host controller 110. Generally, the first CAM C1 in the chain has the lowest priority while the last CAM CN in the chain has the highest priority. Therefore the lowest priority CAM C1 is generally located closest to the host controller 110 and has its output result R1 coupled directly to the host controller 110.

[0030] Search command and search data key signals are applied to the forwarding buses 120 from the host controller 110, and a search is initiated in all CAMs C1-CN in parallel. Once the highest priority CAM CN has completed its search operation, search results RN are fed back from the highest priority CAM CN to an adjacent lower priority CAM CN-1 in synchronization with the common clock signal. Except for the highest priority CAM in the chain, results are not sent back to the adjacent lower priority CAM until a result is received from an adjacent higher priority CAM. The associated output result signal generally includes a match address (MA), a match flag (MF) indicating that a match has occurred and a multiple match flag (MMF) when two or more matches have been found in the CAMs C1-CN.

[0031] EAch CAM includes circuitry such that if the CAMs receives an associated output result from an adjacent higher priority CAM having a match, that CAM relays the received output to the next adjacent lower priority CAM. If a multiple associated output feature is supported in the cascaded CAMs (referred to as multiple match burst output), each CAM having at least a match sends its result after it has ascertained that no associated output from a higher priority CAM exists.

[0032] Referring now to FIG. 2, there is shown another conventional CAM cascading arrangement, specifically, a typical multi-drop cascade arrangement for a CAM system 200 is shown. In this arrangement the CAMs Ci-CN are connected to common forwarding bus 120 in the same manner as that of the daisy chain method previously shown in FIG. 1. However, each associated output results R1 from each CAM Ci is coupled to the host controller 110 along a common result bus 210. A control signal CTRL is used to avoid contention between CAMs C1-CN transmitting their results simultaneously on the commonly connected result bus 210. If matches are found in several CAMs, only the highest priority CAM among them acquires the right to transmit its associated output on the commonly connected result bus 210. If the multiple match burst output feature is supported, then the next highest priority CAM acquires the right to access the bus and performs the same operation as in the higher priority CAM. This is repeated until the lowest priority CAM finishes transmitting its associated output to the host controller 110.

[0033] One objective of the present invention is to reduce load on forwarding buses in the cascading system, and thereby reduce delay time for signals propagated along the forwarding buses. An arrangement, according to an embodiment of the present invention, which achieves this objective, connects a host controller only to at least a first CAM, in a cascaded chain of CAMs. In turn, output and forwarding buses from the first CAM are connected to a second CAM. Output and forwarding buses from the second CAM are connected to a third CAM, and so on, up to a last CAM. The output from the last CAM is connected back to the host controller. Thus, the cascaded CAMs, of the present invention, do not share common forwarding buses, as in the prior art. Furthermore, unlike in the prior art, the CAM's in the cascaded chain of the present invention are arranged such that the lowest priority CAM in the chain returns the result to the controller and the higher priority match results are generally propagated to lower priority CAMs in the chain, thus reliance on additional circuitry to determine priority may not be required

[0034] Although the above mentioned general description of one embodiment of the invention does address the problem of reducing load on buses in a CAM cascading arrangement, one drawback of the above arrangement is that the individual CAMs in the chain can lose synchronisation with the host controller as data and clock signals flow down the cascade chain. Several methods to resolve this problem are also described in the following embodiments of the invention.

[0035] Referring now to FIG. 3 there is shown a schematic diagram of a CAM system 300 according to an embodiment of the present invention. The system includes a plurality of CAM devices C1-CN cascaded with a host controller 312 and a plurality of forwarding buses F1 to FN-1, once again where N is the number of CAMS in the cascade. Each forwarding bus Fi includes an instruction bus, a data bus and a clock bus for carrying corresponding instruction signals INST, data signals DATA and clock signals CLK_K respectively. Each CAM devices Ci include bus input terminals FINi for receiving signals from a higher priority (or upstream) forwarding bus, and bus output terminals FOUTi for relaying signals to a lower priority (or downstream) forwarding bus Fi+1; and result input terminals RINi for receiving an input match result signal from an upstream CAM and result output terminals ROUTi for transmitting an output match result RESULT to a downstream CAM (or host controller 312 if it is the last CAM in the cascade). The host controller 312 includes bus output terminals 328 for connection to a forwarding bus and result input terminals 330 for receiving a final match result. In this embodiment the bus output terminals 328 of the host controller 312 are connected by a first forwarding bus F1 to the bus input terminals FIN1 of a first CAM C1. A second forwarding bus F2, in turn, connects the output bus terminals FOUT of the first CAM C1 to the input bus terminals FIN2 of a second CAM C2. This type of connection is repeated for respective successive forwarding buses F3 to FN-1 and CAMs C3 to CN-1. In a similar manner, the result output terminal ROUT1 of the first CAM C1 is connected to the result input terminal RIN2 of the second CAM C2, the result output ROUT2 of the second CAM C2 is connected to the result input RIN2 of the third CAM C3 and so forth up to the last CAM CN. The last CAM CN has its associated result output terminal ROUTN connected to the corresponding input terminal 330 on the host controller 312 via the result bus. Finally a send signal SEND is generated by an enable signal generator in the first CAM C1 and is coupled to the last CAM CN to initiate transfer of the final search result to the host controller. Timing of when the send signal is generated is described later.

[0036] In summary it may be seen that instruction signals INST, data signals DATA and a clock signals CLK are only coupled via a short forwarding bus from the host controller to the first CAM C1. Signals between successive CAMs are also coupled via their respective short forwarding buses Fi. The short forwarding buses reduce the effect of delay of the signals along these buses, compared to the longer forwarding bus configuration as in the prior art.

[0037] The timing operation of the cascade arrangement of FIG. 3 will now be discussed. A send signal SEND is supplied from the first CAM C1 to the last CAM CN for synchronising transfer of the final search result RN from the last CAM CN to the host controller 312 after a predetermined number of clock cycles. The number of clock cycles before the SEND signal is asserted, is stored in a configuration register (not shown) in the first CAM C1. A user sets this register value, dependent on the number of cascaded CAMs and operating frequency of the system. When the first CAM C1 completes its search operation and the configured number of clock cycles pass, the SEND signal is asserted. This SEND signal indicates to the last CAM CN that the final output search result ROUTN should be driven to the host controller 312.

[0038] An additional controller clock signal CLK_C is generated by the host controller 312 for synchronising the result output from the last CAM CN to the host controller. The CAM CN forwards a final associated output to the host controller 312 synchronized to the clock signal CLK_C. The clock CLK_C controls output data registers in the last CAM CN and provides a reference clock to time the final associated output from the last CAM CN back to the host controller 312.

[0039] A conventional First In First Out (FIFO) register stack may be used to implement output data registers in the cascade chain to synchronize output results with the host controller 312. This is explained as follows. Data forwarded from CAM Ci in the cascade chain is stored in output data registers in the last CAM CN clocked by the clock signal CLK_Ki, and a final associated output from the CAM CN is forwarded to the host controller 312, clocked by the clock signal CLK_C provided by the host controller 312. An input pointer register indicates where to write outputs from the previous CAMs into the FIFO registers and an output pointer register indicates where to retreive the outputs from the FIFO registers. Every time the last CAM CN receives a new associated output from the other cascaded CAMs, the value of the input pointer is changed and the corresponding associated output is stored in a register indicated by the input pointer. The FIFO mechanism allows the host controller 312 to read data synchronously and also allows the CAMs in the cascade to transmit and receive asynchronous data, clock and result signals. The FIFO mechanism is well known to those skilled in the art and will not be described further.

[0040] In addition, the clock signal CLK_K supplied from the host controller 312 is propagated through all CAMs C1-CN in the cascade chain, allowing each CAM C1-CN to function as an individual stage in a pipelined scheme. The clock is supplied from a previously adjacent CAM Ci−1 in the pipeline and is output with a delay corresponding to the latency of that CAM Ci. The delayed clock is then forwarded to the subsequent adjacent CAM Ci+1.

[0041] The priority of each CAM and their arrangement in this embodiment of the invention is different than that in the prior art. The first CAM C1 in the cascade chain is set as the CAM having the highest priority when the cascade chain returns result outputs. Each CAM C1-CN has its priority determined by its placement within the chain, relative to the host controller 312. A CAM Ci that is placed further from the host controller 312 has a lower priority.

[0042] Once the first CAM C1 receives a search command with a search key, a search operation is performed and an associated output search result R1 comprising a match address, a match flag and a multiple match flag is forwarded to the next connected CAM, in this example CAM C2. Generally the search results that are passed from the first CAM to subsequent intermediate CAMs in the cascade are intermediate search results and the final search result is returned to the controller from the lowest priority (or last CAM in the cascade).

[0043] Referring to FIG. 4, a timing diagram 400 is shown for operations performed in the first CAM C1 in the cascade chain, which further illustrates the principles of operation of the cascading configuration discussed with reference to FIG. 3. For simplicity, only the operations of the first CAM C1 are shown. FIG. 4 shows several cycles of the clock signal CLK_K 410 supplied from the host controller 312 and a corresponding delayed clock signal CLK_K 420 output from the CAM C1. Once the first CAM C1 receives a search command with the search key, a search operation is performed and it takes several clock cycles, dependent on CAM search capability, to provide an associated output result. The search command with the search key and the associated output result from the CAM C1 are forwarded to the second CAM C2. It has to be noted that the initial search keys and the forwarded search key contains the same information. It should be noted that the CLK_K signal 410 is continuously propagated through the cascaded CAMs with the delay of each CAM being added to the output clock signal, and the associated output result and the search command with a search key are forwarded after several clock cycles as mentioned.

[0044] After the first CAM C1 provides the search command with the search key and an associated output result to the subsequent CAM C2, the second CAM C2 starts the search operation. The search operations in remaining CAMs are performed in subsequent CAMs until the last CAM, CAM CN, finishes the search operation and the CAM CN provides a final associated output to the host controller synchronised with the CLK_C signal. If there are multiple matches in individual CAM devices in the cascade chain, multiple match burst output may be achievable, but may be limited to the number of registers available for storing associated outputs from the CAMs.

[0045] By placing the CAMs in a “ring” formation, it is possible to minimize the physical distances between first and last CAMs and the host controller. FIG. 8a shows how the first CAM C1 and the last CAM CN are physically placed close to the host controller.

[0046] As mentioned earlier, individual CAMs in the chain may lose synchronization with the host controller as data and clock signals flow down the cascade. Therefore, a mechanism is required to accurately set the latency across individual CAM devices. One solution to this is described below.

[0047] For ease of explanation a single clock signal line has been shown in the above diagrams, however in practice most CAM devices operate as double data rate (DDR) devices using a pair of complementary clock signals to sample data results. In the following description of the timing system DDR clocks will be illustrated. The clocks follow respective complementary clock paths A and B.

[0048] Since clock signals flow asynchronously through the chain it is important that the edges of the complimentary clocks do not drift with respect to each other. This clock drift is generally caused by production variability. For example, if the first CAM device was produced in a first wafer lot and a second CAM device was produced in a second wave lot, it may be that clock path A is faster than clock path B for the CAMS produced from the first wafer lot and vice versa for the CAMS from the second wafer lot. One solution to this problem is to cross the clock signal paths flowing from the input clock pin to the output clock pin of the CAM device. This is shown schematically in FIG. 5.

[0049] In addition to ensuring that the complimentary clock edges do not drift with respect to each other, it is important that instructions and data are relayed through a CAM device with an accurately defined latency, particularly if the CAM devices operate at a relatively high speed, such as at speeds in excess of 200 MHz.

[0050] Referring now to FIG. 6 there is shown a timing system for accurately determining the latency of data flow through a CAM device according to an embodiment of the present invention. For clarity, the timing system is illustrated for a single bit of instruction data INSTI. It is understood that the circuit would be replicated for each additional bit of instruction data INSTI.

[0051] The timing circuit includes input and output buffers coupled from respective input and output pins of the CAM device. Complimentary clock signals KA, KB, are coupled from their respective input pins to a process-independent delay element (that is, a delay element designed to exhibit insignificant variations in its delay based on device fabrication process variations) delay_ka and delay_kb to produce respective delayed clock signals ka_strobe and kb_strobe, which in turn are fed to the clock inputs of respective input-side D-latches LTIU and LTIL which receive at their respective D-inputs the input instruction signal INSTI. The Q outputs from the latches LTIU and LTIL are coupled to respective D-inputs of output-side latches LTOU, LTOL. The output latches LTOU and LTOL, are clocked by a delayed version (ka_internaland kb_internal) of the ka_strobe and kb_strobe clock signals. That is, additional delay elements clocktreeA and clocktreeB delay the respective ka_strobe, kb_strobe signals. The Q outputs of the output latches LTOU, LTOL, are combined by a multiplexer and driven to an output pin as the signal INSTO. The multiplexer is controlled by the same internal delayed clock signals kA_internal, kb_internal that control the output latches LTOU, and LTOL.

[0052] The delay elements clocktreeA and clocktreeB are chosen to provide a relatively small delay, so as to allow for the settling time of logic transitions on the input signal INSTI. The clocktreeA and clocktreeB delay elements are chosen so that the edges of the ka_internal and kb_internal signals occur approximately in the middle of the instruction signal INSTI period, and preferably, to occur approximately in a first quarter of the INSTI period. For achieving more accurate timing delays, particularly if the CAMs are needed to perform at higher speeds, well known circuits, such as a delay lock loop (DLL) or a phase lock loop (PLL), can be implemented as long as the delayed KA and KB signal they produce, assures that the input instruction signal INSTI is ready to be latched properly. However, using a DLL or PLL to synchornize internal clocking requires a more complex system and very tight control of the quality of the fabrication process used to manufacture the each CAM device. The circuit illustrated in FIG. 6 allows for accurate timing control without requiring the added overhead of implementing an on-chip DLL or PLL.

[0053] Thus, the delay time existing between the input instruction signal INSTI arriving to a chip, being transferred through the chip and set to be available in the output of the chip (INSTO), including the time it takes the signal to be available as the instruction signal INSTI to the following chip is determined by a the following latency equation (in nanoseconds): [½tclock+tKHEH+board delay]. Wherein tclock is the time of a clock cycle, tKHEH is the minimum and maximum delay provided by the analog delay element, and the board delay is the time that it takes to the signal to travel through the board and to the next chip. For example, if the system is operating at 166 MHz, the tclock=6 ns. For a particular memory tested, the minimum and maximum analog delay tKHEH is between 3 and 6 ns and the board delay is the average interdevice routing delay, approximately between 0 and 1 ns, the total delay for propagating the instruction signal is between 6 and 10 ns.

[0054] In addition, the internal delayed clock signals Ka_internal and Kb_internal are also passed through output D-type flip-flops to generate output clock signals CQA and CQB which are delayed versions of the input clock signals. As there are two clock signals KA and KB, two pairs of flip-flops are used and once again the outputs from each pair of flip-flops is combined in a respective multiplexer to generate the respective CQA and CQB clock signals.

[0055] Referring to FIG. 7 there is shown a timing diagram showing the flow of signals through the timing circuit of FIG. 6. It may be seen that the output signals, in this case, INSTO and the output clock signals CQA and CQB are latched out of the CAM device at the same time since they are clocked out by the same delayed internal clock signals Ka_internaland KB_internal, respectively. Accordingly, this timing mechanism ensures that edges of the data signals and clock signals do not drift with the successive devices are added to the cascade.

[0056] As mentioned earlier, a FIFO may be used to implement an output data register in the cascade chain to synchronize output results with the host controller 312. Accordingly, referring to FIGS. 8a and 8 b, two modes are shown in which the FIFO may be used to synchronize output results with the host controller. In FIG. 8a, a “K-mode” implementation is shown. In the “K-mode” implementation, the FIFO is implemented in the host controller and a programmable register in the first CAM device is used to store the number of clock cycles that the first CAM should wait before the last CAM is ready to send its results to the host controller. This programmable value, called CLAT, depends on the number of devices in the cascade. In this mode, the first CAM simply asserts the send signal to the last CAM after the programmed number of clock cycles has passed.

[0057] In FIG. 8b, the “C-mode” arrangement is shown. In this arrangement the FIFO is contained in the last CAM device and the complimentary clock signals KA, KB to the first CAM also coupled to the last CAM. In this case, the CLAT register is programmed as previously with the number of clock cycles, however, the FIFO is clocked directly from the clock signal KA, KB. In this instance, the user does not have to create a FIFO in the host controller. Thus, the timing and forwarding of results from the last CAM is completely transparent to the user.

[0058] Referring to FIG. 9 there is shown a schematic diagram of a CAM system 500 according to a second embodiment of the present invention. In this system 500, the configuration of CAMs in the cascaded chain is similar to FIG. 3 except that the clock CLK_C signal to the last CAM CN and a SEND signal between the first and last CAMs C1 and CN respectively, are not used. As described above, it is difficult for the host controller 312 to know the number of clock cycles before a final result is obtained from the cascaded chain. Accordingly, in this embodiment, in order to signal to the host controller 312 that a final result is available from the last CAM CN in the cascade chain, a tag signal TAG 510 is introduced in the chain. The tag is transmitted from the host controller 312, which uses the tag signal 510 to locate the corresponding search command that was issued to the first CAM C1. The host controller includes tag output terminal 520 and tag input terminal 522. Essentially, the tag signal is an identification signal that is asserted in parallel with and simultaneously with search command and search data results from a higher priority CAM to an adjacent lower priority CAM. Upon receiving the tag with a final associated output result RN from the last CAM CN, the host controller 312 recognizes which search command corresponds to the received final associated output and proceeds to the next operations with the final result RN.

[0059] Referring to FIG. 10 there is shown a cascaded CAM system 600 according to a third embodiment of the invention. In this embodiment the lowest priority CAM C1 is physically placed in the closest position to a host controller 312. The host controller 312 provides a search command with a search key and the clock CLK_K signal to the closest CAM C1 having the lowest priority. A delayed clock signal from CAM Ci is provided to an adjacent CAM Ci+1 throughout the cascaded chain as described in previous embodiments. The closest CAM performs a search operation and forwards the search command with the key without its associated output to an adjacent second CAM C2. In the present embodiment, the second adjacent CAM C2 is the CAM that has the highest priority. The second CAM C2 forwards a search command with a key and an associated output to the next adjacent CAM C3 after a search operation is completed. An associated output result RN and a delayed clock CLK_K signal from the last CAM CN are provided to the first CAM C1. Finally the first CAM C1 provides a final associated result output R1 to the host controller 312. With this embodiment, it is unnecessary to provide the SEND signal from the first CAM C1 to the last CAM CN, as in the embodiment of FIG. 3 because the first CAM C1 is capable of computing the number of clocks taken through the cascade chain. The first CAM C1 receives a clock CLK_K signal from the host controller and a delayed clock signal CLK_K from the last CAM CN, respectively.

[0060] Referring to FIG. 11 there is shown cascaded CAM system 700 according to a fourth embodiment of the invention. While this embodiment may be the most transparent method to the host controller 312 and the easiest method to implement, it is somewhat slower than the embodiment described on FIG. 10 because of the added clock latency caused by each CAM in the cascade chain.

[0061] The CAMs in the cascade chain are arranged as shown in the embodiment of FIG. 3. However, a clock CLK_C signal and a result path between a host controller and the last CAM CN are obviated and a SEND signal is not provided from the first CAM C1, to the last CAM CN. A clock loop is established between a host controller 312 and all the CAMs C1-CN in the cascade chain. Priority setting of cascaded CAMs in the present embodiment is opposite to that shown in FIG. 3. In FIG. 11, the first CAM C1 has the lowest priority and the last CAM CN has the highest priority. A search command with a key is issued by the host controller 312 to the first CAM C1 and a search operation in the first CAM starts. After its search operation is completed, the first CAM C1 forwards a search command with a key to the second CAM C2, while holding an associated output. Similarly, the second CAM C2 operation cascades along the CAMs in the chain, with each CAM holding its associated output. Once the search operation is completed by the last CAM CN, the associated output is provided as result RN from the last CAM CN is sent back to the previous adjacent CAM CN-1 and the associated result is subsequently sent backward through the cascade chain to the host controller 312 every clock cycle. If a match in a higher priority CAM is found, this result will prevail and will be sent through the remaining CAMs in the cascade, preventing the associated output of a lower priority CAM to be sent to the host controller 312. As previously mentioned, if there are multiple matches in CAMs in the cascade chain, multiple match burst output may be achievable. In this case, each CAM will combine the previous associated result with its own held search result and then send it to the following lower priority CAM until it reaches the host controller 312. In this embodiment, the host controller 312 always receives the result of the search from the first CAM C1. The host controller described in the teachings may be considered as microprocessor, micro-controller or ASIC based control chip. Even though a search operation in the cascade chain was described as an example of an operation performed in the CAM, a write operation or a read operation can be applied in the same way.

[0062] The invention is not limited to the cases having three CAMs as shown, any number of CAMs may be arranged in the cascade chain, according to the present invention, as long as delay time for system requirement is met.

[0063] Although preferred embodiments of the invention have been described herein, it will be understood by those skilled in the art that variations may be made thereto without departing from the spirit of the invention or the scope of the appended claims. 

The embodiments of the invention in which an exclusive property or privilege is claimed are defined as follows:
 1. A method for interconnecting a plurality of memory chips, said method comprising: a) interconnecting a plurality of memory chips each capable of performing search and compare operations, each memory chip being further capable of receiving at least an instruction signal and a data signal and generating a search result; b) assigning a priority to each of the plurality of memory chips, the plurality of memory chips including at least a lowest priority chip; c) sending an instruction signal and a data signal from a controller to a first memory chip within the plurality of memory chips having a first priority and receiving a search result from the lowest priority chip.
 2. A method according to claim 1, wherein the lowest priority chip is the first memory chip.
 3. A method according to claim 1, wherein the search result comprises an address.
 4. A method according to claim 1, wherein the search result comprises a plurality of addresses.
 5. A method according to claim 1, further comprising: a) sending the search result of a first memory chip to an intermediate memory chip; b) the intermediate memory chip comparing an internal search result with the search result from the first memory chip and generating an intermediate search result; c) sending the intermediate search result to a subsequent intermediate memory chip, said subsequent chip performing said step b); d) continuing said step c) until reaching a lowest priority memory chip; e) the lowest priority memory chip receiving the intermediate search result from the intermediate memory chip, comparing a last internal search result with the intermediate search result from the previous intermediate memory chip and generating a final search result.
 6. A method according to claim 5, wherein each intermediate memory chip connected between the first memory chip and the lowest priority memory chip, compares the internally generated result from its own search and compare operations, with the result coming from another intermediate memory chip, for determining a highest priority result and sending the highest priority result to a subsequent intermediate memory chip as its intermediate search result.
 7. A method according to claim 1, wherein the memory chips are of the type of content addressable memory chips.
 8. A method according to claim 1, further comprising: the first memory chip sending a first signal to the lowest priority chip, the lowest priority chip sending the result to the controller upon receiving the first signal.
 9. A method according to claim 1, wherein each memory chip connected between the first memory chip and the last memory chip compares the result generated from its own search and compare operations, and compare the result to the result coming from a second memory chip for determining a highest priority result and sending the highest priority result to the following memory chip within the plurality of memory chips.
 10. A method for operating a plurality of memory chips, said method comprising: a) connecting a controller to a first memory chip of a plurality of memory chips, each memory chip having a first clock input and a second clock input; b) the controller sending a first clock signal and a second clock signal to the first clock input and the second clock input of the first memory chip respectively; c) the first memory chip sending the second clock signal to the first clock input of a second memory chip and the first clock signal to the second clock input the second memory chip.
 11. A method according to claim 10, wherein the second clock signal is complementary to the first clock signal.
 12. A method for cascading a plurality of memory chips, said method comprising: a) a controller providing a first clock signal and a first instruction signal, to a first chip in a plurality of interconnected memory chips forming a chain, the instruction signal comprising data to be searched in the plurality of memory chips; b) a first memory chip within the chain having an input for receiving the first clock signal and the first instruction signal from the controller and an output for providing at least a second clock signal and a second instruction signal to a second memory chip within the chain; and c) a lowest priority chip providing a result signal to the controller.
 13. An apparatus for cascading CAMs, said apparatus comprising: a host controller coupled to a first CAM; a plurality of forwarding buses and associated outputs for coupling said first CAM to a second through nth CAM to form a cascade chain of n CAMs; said first though nth CAMs being coupled through said forwarding buses and an associated output; said nth CAM being coupled to said host controller and said first CAM having means for supplying a SEND signal to said nth CAM; said SEND signal for coordinating allowing transfer of a search result from said nth CAM to said host controller.
 14. The apparatus of claim 13 wherein said CAMs are positioned in a formation to minimize physical distances between said CAMs and said host controller.
 15. A CAM system comprising: (a) a plurality of forwarding buses the forwarding buses include an instruction bus, a data bus and a clock bus; (b) a host controller including bus output terminals for connection to a forwarding buses and result input terminals for receiving match results from CAMs; (c) a plurality of CAM devices, the CAM devices including i) bus input terminals for receiving signals from an upstream forwarding bus; ii) bus output terminals for relaying signals on a downstream forwarding bus; iii) result input terminals for receiving an input match result signals from an upstream CAM and iv) result output terminals for outputting a match result, the CAM devices being cascaded with the host controller such that the length of said forwarding buses is minimised.
 16. A cam system comprising: a) a plurality of CAM devices connected in a serial cascade arrangement, the CAMS in said cascade being connected to an adjacent CAM by a respective forwarding bus, with at most a first Cam CAM in said cascade being connected to a receive data signals from a host controller and at most a last CAM devices being coupled to forward results back to the host controller; and b) a send signal generation means for supplying a SEND signal to said last CAM; said SEND signal for coordinating transfer of said search result from said last CAM to said host controller, said serial cascade arrangement minimising the number of CAMs being connected to a common forwarding bus. 